package com.sdjenkins.sms;

import java.util.ArrayList;
import java.util.Collection;

public class Smses {
    
    int count = 0;
    
    ArrayList<SmsCore> sms = new ArrayList<SmsCore>();

    public String toString() {
	String ts = "count="+count+"\n";
	for (SmsCore s : sms) {
	    ts += s;
	}
	return ts;
    }
    
    public void setSms(Collection<SmsCore> all) {
    	sms.addAll(all);
    	count += all.size();
    }    
    public void addSms(SmsCore e) {
    	sms.add(e);
    	count++;
    }
    
    
    
}
